package com.yanqu.road.dataHelper.action;

import com.yanqu.road.dataHelper.manager.ServerMgr;
import com.yanqu.road.entity.player.CrossUserBaseInfo;

import java.io.File;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class UserBaseInfo extends actionBase {
    public void go(List<Long> serverList) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);
        String dirPath = System.getProperty("user.dir") + File.separator;

        ServerMgr serverMgr = new ServerMgr();
        List<CrossUserBaseInfo> fromCross = serverMgr.getFromCross();
        for (CrossUserBaseInfo info : fromCross) {
            serverMgr.insertUserBaseInfo(info);
        }
    }
}
